package com.ruoyi.aftserv.domain;

import com.ruoyi.common.core.domain.entity.SysDept;
import com.ruoyi.common.core.domain.entity.SysUser;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 班级 manage_grade_class
 * 
 * @author 张艳羽
 * @date 2024-08-19
 */
public class ManageGradeClass extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 班级ID */
    private Long id;

    /** 年级 */
    @Excel(name = "年级")
    private Integer gradeNum;

    /** 班级 */
    @Excel(name = "班级")
    private Integer classNum;

    /** 入学年份 */
    @Excel(name = "入学年份")
    private String gradeYear;

    /** 班级code标识 */
    private String classCode;

    /** 班主任ID */
    @Excel(name = "班主任ID")
    private Long leaderId;

    @Excel(name = "班主任", targetAttr = "userName", type = Excel.Type.EXPORT)
    private SysUser leader;

    /** 状态（0正常 1已毕业） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=已毕业")
    private String status;

    public void setId(Long id) 
    {
        this.id = id;
    }

    public Long getId() 
    {
        return id;
    }
    public void setGradeNum(Integer gradeNum) 
    {
        this.gradeNum = gradeNum;
    }

    public Integer getGradeNum() 
    {
        return gradeNum;
    }
    public void setClassNum(Integer classNum) 
    {
        this.classNum = classNum;
    }

    public Integer getClassNum() 
    {
        return classNum;
    }
    public void setGradeYear(String gradeYear) 
    {
        this.gradeYear = gradeYear;
    }

    public String getGradeYear() 
    {
        return gradeYear;
    }
    public void setClassCode(String classCode) 
    {
        this.classCode = classCode;
    }

    public String getClassCode() 
    {
        return classCode;
    }
    public void setLeaderId(Long leaderId) 
    {
        this.leaderId = leaderId;
    }

    public Long getLeaderId() 
    {
        return leaderId;
    }
    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    public SysUser getLeader()
    {
        if (leader == null)
        {
            leader = new SysUser();
        }
        return leader;
    }

    public void setLeader(SysUser leader)
    {
        this.leader = leader;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("id", getId())
            .append("gradeNum", getGradeNum())
            .append("classNum", getClassNum())
            .append("gradeYear", getGradeYear())
            .append("classCode", getClassCode())
            .append("leaderId", getLeaderId())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
